package objects;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Monkey on 2017/3/6.
 * 住院病人信息
 */

public class InPatient implements Parcelable { //实现序列化

    private String BRBQ;//病人病区
    private String RYRQ;//病人入院日期
    private String LXDZ;//联系地址
    private String CSNY;//出生年月
    private String BRXB;//病人性别
    private String YSXM;//医生姓名
    private String BRKS;//病人科室
    private String ZYH;//住院号
    private String BRCH;//床位号
    private String BRXZ;//病人性质
    private String ZYHM;//病人住院号码
    private String ZZYS;//主治医生
    private String CYPB;//出院判别
    private String YEPB;//
    private String ZRYS;//主任医生
    private String BRXM;//病人姓名
    private String KSMC;//科室名称
    private String HLJB;//护理级别
    private String RKRQ;//入科日期

    protected InPatient(Parcel in) {
        BRBQ = in.readString();
        RYRQ = in.readString();
        LXDZ = in.readString();
        CSNY = in.readString();
        BRXB = in.readString();
        YSXM = in.readString();
        BRKS = in.readString();
        ZYH = in.readString();
        BRCH = in.readString();
        BRXZ = in.readString();
        ZYHM = in.readString();
        ZZYS = in.readString();
        CYPB = in.readString();
        YEPB = in.readString();
        ZRYS = in.readString();
        BRXM = in.readString();
        KSMC = in.readString();
        HLJB = in.readString();
        RKRQ = in.readString();
    }

    public static final Creator<InPatient> CREATOR = new Creator<InPatient>() {
        @Override
        public InPatient createFromParcel(Parcel in) {
            return new InPatient(in);
        }

        @Override
        public InPatient[] newArray(int size) {
            return new InPatient[size];
        }
    };

    public String getYSXM() {
        return YSXM;
    }

    public void setYSXM(String YSXM) {
        this.YSXM = YSXM;
    }

    public String getKSMC() {
        return KSMC;
    }

    public void setKSMC(String KSMC) {
        this.KSMC = KSMC;
    }

    public String getBRBQ() {
        return BRBQ;
    }

    public void setBRBQ(String BRBQ) {
        this.BRBQ = BRBQ;
    }

    public String getRYRQ() {
        return RYRQ;
    }

    public void setRYRQ(String RYRQ) {
        this.RYRQ = RYRQ;
    }

    public String getLXDZ() {
        return LXDZ;
    }

    public void setLXDZ(String LXDZ) {
        this.LXDZ = LXDZ;
    }

    public String getCSNY() {
        return CSNY;
    }

    public void setCSNY(String CSNY) {
        this.CSNY = CSNY;
    }

    public String getBRXB() {
        return BRXB;
    }

    public void setBRXB(String BRXB) {
        this.BRXB = BRXB;
    }

    public String getBRKS() {
        return BRKS;
    }

    public void setBRKS(String BRKS) {
        this.BRKS = BRKS;
    }

    public String getZYH() {
        return ZYH;
    }

    public void setZYH(String ZYH) {
        this.ZYH = ZYH;
    }

    public String getBRCH() {
        return BRCH;
    }

    public void setBRCH(String BRCH) {
        this.BRCH = BRCH;
    }

    public String getBRXZ() {
        return BRXZ;
    }

    public void setBRXZ(String BRXZ) {
        this.BRXZ = BRXZ;
    }

    public String getZYHM() {
        return ZYHM;
    }

    public void setZYHM(String ZYHM) {
        this.ZYHM = ZYHM;
    }

    public String getZZYS() {
        return ZZYS;
    }

    public void setZZYS(String ZZYS) {
        this.ZZYS = ZZYS;
    }

    public String getCYPB() {
        return CYPB;
    }

    public void setCYPB(String CYPB) {
        this.CYPB = CYPB;
    }

    public String getYEPB() {
        return YEPB;
    }

    public void setYEPB(String YEPB) {
        this.YEPB = YEPB;
    }

    public String getZRYS() {
        return ZRYS;
    }

    public void setZRYS(String ZRYS) {
        this.ZRYS = ZRYS;
    }

    public String getBRXM() {
        return BRXM;
    }

    public void setBRXM(String BRXM) {
        this.BRXM = BRXM;
    }

    public String getHLJB() {
        return HLJB;
    }

    public void setHLJB(String HLJB) {
        this.HLJB = HLJB;
    }

    public String getRKRQ() {
        return RKRQ;
    }

    public void setRKRQ(String RKRQ) {
        this.RKRQ = RKRQ;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(BRBQ);
        parcel.writeString(RYRQ);
        parcel.writeString(LXDZ);
        parcel.writeString(CSNY);
        parcel.writeString(BRXB);
        parcel.writeString(YSXM);
        parcel.writeString(BRKS);
        parcel.writeString(ZYH);
        parcel.writeString(BRCH);
        parcel.writeString(BRXZ);
        parcel.writeString(ZYHM);
        parcel.writeString(ZZYS);
        parcel.writeString(CYPB);
        parcel.writeString(YEPB);
        parcel.writeString(ZRYS);
        parcel.writeString(BRXM);
        parcel.writeString(KSMC);
        parcel.writeString(HLJB);
        parcel.writeString(RKRQ);
    }
}
